<?php
/**
 * get base url
 *
 */
class Zend_View_Helper_JsHandler
{
    public $view;

    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }
    
    function JsHandler()
    {
        if (!isset($this->view->controller)) return "";
        
        switch ($this->view->controller) {
        	case 'wizard' :
        		return $this->view->controller."_".$this->view->action.".js";
        	default : 
        		return $this->view->controller.".js";
        }
    }
}